<template>
  <div class="container">
    <div id="BMSC" ref="root"></div>
  </div>
</template>

<style lang="scss" scoped></style>

<script setup lang="ts">
import MD from '@/model/MD'
import { onMounted, ref } from 'vue'

//主场景挂载点
const root = ref<HTMLElement>()

onMounted(() => {
  console.log('MD scene onMounted')
  // 场景容器
  MD.container = root.value
  //挂载主场景
  MD.SC.mountedMainScene()
})
</script>
